- /* existsnc.cpp by K. Tsuru*/
- /************************************
- Search directory for constant files
- "e.snc", "pi.snc" and "log10.snc".
- **************************************/
- #ifndef SN_H
- #include "sn.h"
- #endif
- #ifndef SNC_FILE_H
- #include "sncfile.h" // for three constant files
- #endif
- bool ExistDirectory(const char* const dir);
-
- bool ExistSncDirectory(char* sncDir){
- // search the upper directory
- strcpy(sncDir, ".");
- strcat(sncDir, SNC_DIR); // ../
- if( ExistDirectory((const char*)sncDir) ) return true;
-
- // search the current directory
- strcpy(sncDir, SNC_DIR);
- if(ExistDirectory(sncDir)) return true;
-
- sncDir[0] = '\0'; // not found
- return false;
- }
existsnc.cpp : last modifiled at 2015/06/01 14:52:42(690 bytes)
created at 2016/04/11 11:17:20
The creation time of this html file is 2017/10/07 10:54:15 (Sat Oct 07 10:54:15 2017).